package com.demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ComponentScan("com.demo")
@Import(ImportDemoBeanService.class)
public class AppConfig {
	// 增加一个Bean方法注入的
	@Bean
	public DemoBeanService demoBeanService() {
		return new DemoBeanService();
	}

}
